<template>
	<view>
		<view class="tag-box">
			<view class="title">
				<view class="icon">
					<uv-icon name="account-fill" size="20" color="#aaa"></uv-icon>
				</view>
				<text class="text">更多达人</text>
			</view>
			<view class="sticky-box">
				<view class="btn-tag" @click="tabClick('category')">
					<text class="text">{{searchTabs.categoryLabel}}</text>
					<uv-icon name="arrow-down" size="20" color="#aaa"></uv-icon>
				</view>
				<view class="btn-tag" @click="tabClick('sex')">
					<text class="text">{{searchTabs.sexLabel}}</text>
					<uv-icon name="arrow-down" size="20" color="#aaa"></uv-icon>
				</view>
				<!-- <view class="btn-tag" @click="tabClick('level')">
					<text class="text">等级</text>
					<uv-icon name="arrow-down" size="20" color="#aaa"></uv-icon>
				</view>
				<view class="btn-tag" @click="tabClick('city')">
					<text class="text">城市</text>
					<uv-icon name="arrow-down" size="20" color="#aaa"></uv-icon>
				</view>
				<view class="btn-tag" @click="tabClick('city')">
					<text class="text">筛选</text>
					<uv-icon name="shaixuan" custom-prefix="iconfont" size="20" color="#aaa"></uv-icon>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	import sheep from '@/sheep';
	export default {
		components: {
			
		},
		props: {
			scrollTop: {
				type: Number,
				default: 0,
			},
			stickyTop: {
				type: Number,
				default: uni.upx2px(80),
			},
		},
		data() {
			return {
				
			}
		},
		computed: {
			searchTabs() {
				return sheep.$store('sys').searchTabs;
			},
		},
		methods: {
			tabClick(e) {
				this.$emit('tabClick', e);
			},
		}
	}
</script>

<style lang="scss" scoped>
	.tag-box {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 15px;
		background-color:  var(--bg-card);
		height: 100rpx;
		
		.title {
			font-size: 28rpx;
			font-weight: bold;
			display: flex;
			
			.icon {
				background-color: #ddd;
				width: 36rpx;
				height: 36rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				border-radius: 100%;
			}
			
			.text {
				margin-left: 4px;
			}
		}
		
		.sticky-box {
			display: flex;
			
			.btn-tag {
				background-color: #fff;
				border-radius: 40px;
				margin-left: 5px;
				padding: 0px 10px;
				display: flex;
				align-items: center;
				font-size: 24rpx;
				height: 48rpx;
				
				.text {
					margin-right: 3px;
				}
			}
		}
	}
</style>